package com.hrg.seer.sdk.rbk.api;

import lombok.Getter;

import static com.hrg.seer.sdk.rbk.api.MiscApiEnum.*;

@Getter
public enum DOOperationType {
//	ROBOT_OTHER_SETDO_REQ(6001, "设置 DO", 19210),
//	ROBOT_OTHER_SETDOS_REQ(6002, "批量设置 DO", 19210),

	SetDO(ROBOT_OTHER_SETDO_REQ, "设置 DO", "setDO", "SetDO"),
	//SetDOS(ROBOT_OTHER_SETDOS_REQ, "批量设置 DO", "setDOS", "SetDOS"),
	SetLoadDO(ROBOT_OTHER_SETDO_REQ, "设置 DO", "setLoadDO", "SetDO"),
	//SetLoadDOS(ROBOT_OTHER_SETDOS_REQ, "批量设置 DO", "setLoadDOS", "SetDOS"),
	SetUnloadDO(ROBOT_OTHER_SETDO_REQ, "设置 DO", "setUnloadDO", "SetDO"),
	//SetUnloadDOS(ROBOT_OTHER_SETDOS_REQ, "批量设置 DO", "setUnloadDOS", "SetDOS"),
	;
	private final MiscApiEnum apiEnum;
	private final String chin;
	private final String operation;
	private final String operationFull;

	DOOperationType(MiscApiEnum apiEnum, String chin, String operation, String operationFull) {
		this.apiEnum = apiEnum;
		this.chin = chin;
		this.operation = operation;
		this.operationFull = operationFull;
	}

	public boolean isLoad() {
		return operation.toLowerCase().contains("load");
	}

	public boolean isUnload() {
		return operation.toLowerCase().contains("unload");
	}
}
